home *** CD-ROM | disk | FTP | other *** search
/ ftp.hitl.washington.edu / ftp.hitl.washington.edu.tar / ftp.hitl.washington.edu / pub / people / tsoper / My Sample Apps / OpenGLApp / Form1.cs < prev    next >
Text File  |  2005-05-08  |  627b  |  35 lines

  1. using System;
  2. using System.Drawing;
  3. using System.Windows.Forms;
  4. using CsGL.OpenGL;
  5.  
  6. public class SampleForm : Form
  7. {    
  8.     View view = new View();
  9.  
  10.     private void InitializeComponent()
  11.     {
  12.         // 
  13.         // SampleForm
  14.         // 
  15.         this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
  16.         this.ClientSize = new System.Drawing.Size(292, 266);
  17.         this.Name = "SampleForm";
  18.         
  19.  
  20.     }
  21.  
  22.     public SampleForm()
  23.     {
  24.         Text = "Main Form";
  25.         SetClientSizeCore(800,500);
  26.         //view.Dock = DockStyle.Fill;
  27.         Controls.Add( view );
  28.         this.IsMdiContainer = true;
  29.         AnotherForm form2 = new AnotherForm( this );
  30.         this.Focus();
  31.     }
  32.  
  33. }
  34.  
  35.